package com.sky.service.impl;


import com.sky.entity.Dish;
import com.sky.entity.Setmeal;
import com.sky.mapper.UserSetMealMapper;
import com.sky.service.UserSetmealService;
import com.sky.vo.DishItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserSetmealServiceImpl implements UserSetmealService {

    @Autowired
    private UserSetMealMapper userSetMealMapper;

    @Override
    public List<DishItemVO> getById(Long categoryId) {
        return userSetMealMapper.listById(categoryId);
    }

    @Override
    public List<Setmeal> list(Setmeal setmeal) {
        List<Setmeal> list = userSetMealMapper.listSetMeal(setmeal);
        return list;
    }


}
